package com.java.netty.common.codec;

import io.netty.buffer.ByteBuf;

public class VncPackageContent {

   private int target;
   private int source;
   private byte version;
   private byte paramType;
   private short reserve;
   private int command;
   private int tag;
   private int arrayLength;
   private byte[] bufParam;

   protected ByteBuf encode(ByteBuf buf) {
      return buf;
   }

   public byte[] getBy() {
      return super.toString().getBytes();
   }

   public int getTarget() {
      return target;
   }

   public void setTarget(int target) {
      this.target = target;
   }

   public int getSource() {
      return source;
   }

   public void setSource(int source) {
      this.source = source;
   }

   public byte getVersion() {
      return version;
   }

   public void setVersion(byte version) {
      this.version = version;
   }

   public byte getParamType() {
      return paramType;
   }

   public void setParamType(byte paramType) {
      this.paramType = paramType;
   }

   public short getReserve() {
      return reserve;
   }

   public void setReserve(short reserve) {
      this.reserve = reserve;
   }

   public int getCommand() {
      return command;
   }

   public void setCommand(int command) {
      this.command = command;
   }

   public int getTag() {
      return tag;
   }

   public void setTag(int tag) {
      this.tag = tag;
   }

   public int getArrayLength() {
      return arrayLength;
   }

   public void setArrayLength(int arrayLength) {
      this.arrayLength = arrayLength;
   }

   public byte[] getBufParam() {
      return bufParam;
   }

   public void setBufParam(byte[] bufParam) {
      this.bufParam = bufParam;
   }

}
